//microcommand define xy6
const execa = require("execa")
signature("<text:rawtext>", {
  showWarnings: true,
  checkArgCount: true,
  checkUnknown: true,
})
action(({}, text) => {
  return execa("python3", ["/root/koishi-app/assets/bin/xdi8hebrew.py"], {
    input: text,
    env: {
      PYTHONIOENCODING: "utf-8",
    },
  }).then(
    ({ stdout }) => h.escape(stdout),
    err => h.text(String(err))
  )
})
locale("zh-CN", { description: "希顶聊天字母转希犹转写", usage: "反斜杠后的单个字符及 ASCII 直单/双引号内的字符不会被转写。弯引号和 ASCII 横杠、冒号、竖线会被转换成对应的希伯来文标点。" })